<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript"
	src="${ctx}/res/js/resourceManagement/addOrUpdateResource.js"></script>
</head>
<body>
	<input type="hidden" id="hiddenResUrl" value="${resource.resUrl}" />	
	<div id="pageName" class="pageName"></div>
	<div id="form_data" class="form_data">
	
		<form id="resourceForm" method="post">		 
			<center>
				<table>
					<tr>
						<td class="td_for_label">RES.RES_URL<span style="color: red">&nbsp*</span></td>
						<td class="td_for_input">
							<input type="text" name="resUrl" id="resUrl" value="${resource.resUrl}" scope="request"/>
							<input type="hidden" name="id" value="${resource.id}" id="rid"/>
						</td>
					</tr>
					<tr>
						<td class="td_for_label"" style="float:left">ROLE.ROLE_NAME<span style="color: red">&nbsp*</span></td>
		
						<td rowspan="3"> 
							<div>
								<div style="float:left">
									<select multiple id="select1"  style="width: 100px; height: 130px;">
											<c:forEach items="${roleList}" var="x">
												<option value="${x.role_name}">${x.role_name}</option>
											</c:forEach>
									</select>
								</div>
								<div style="float:left;">
									<div style="margin:0 5px" id="add" class="toolButton" >选中添加</div><br>
										<div style="margin:5px" id="add_all" class="toolButton">全部添加</div><br>
										<div style="margin:0 5px" id="remove" class="toolButton">选中移除</div><br>
										<div style="margin:5px" id="remove_all" class="toolButton">全部移除</div>
									</div>
								</div>
								 
								<div style="float:left">
									<select multiple id="select2" name="roleName" style="width: 113px; height: 130px;">
										<c:forEach items="${roleArray}" var="x">
												<option value="${x.roleName}">${x.roleName}</option>
										</c:forEach>
									</select>
								</div>
							</div>
						</td>
					</tr>
					<tr></tr>
					<tr></tr>
					<tr></tr>
					<tr>
						<td></td>
						<td style="text-align:center;padding:10px;" colspan="3">
							<div id="btnSubmit" class="toolButton">提交</div>
							<div id="btnCancel" class="toolButton">取消</div>
						</td>
					</tr>
				</table>
			</center>
		</form>
		
		<form id="submitcurrentpage" method="post" action="${ctx}/resourceManagement/resourceList.do">
			<input type="hidden" name="pageType" value="lastest" />
		</form>
		
	</div>
</body>
</html>